@nocobase/client-v2 2.2.0-alpha.2 → 2.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,10 @@ import type { FormAssignRuleItem, NamePath, Patch, SetOptions } from './types';
12
12
  type FormBlockModel = FlowModel & {
13
13
  getAclActionName?: () => string;
14
14
  };
15
+ export type FormValuePatch = {
16
+ path: NamePath;
17
+ value: unknown;
18
+ };
15
19
  export declare class FormValueRuntime {
16
20
  private readonly model;
17
21
  private readonly getForm;
@@ -50,6 +54,8 @@ export declare class FormValueRuntime {
50
54
  syncAssignRules(items: FormAssignRuleItem[]): void;
51
55
  get formValues(): any;
52
56
  getFormValuesSnapshot(): any;
57
+ getUserEditedValuePatches(): FormValuePatch[];
58
+ getUserEditedValuesSnapshot(): Record<string, unknown>;
53
59
  private toMirrorSnapshot;
54
60
  canApplyDefaultValuePatch(namePath: NamePath, resolved: any): boolean;
55
61
  canApplyOverrideValuePatch(namePath: NamePath): boolean;
@@ -111,6 +117,9 @@ export declare class FormValueRuntime {
111
117
  private isExplicit;
112
118
  private findExplicitHit;
113
119
  private findUserEditedHit;
120
+ private findLatestWriteMeta;
121
+ private isCurrentUserEditedPath;
122
+ private omitNonUserDescendantValues;
114
123
  private isDescendantPathKey;
115
124
  }
116
125
  export {};
@@ -10,6 +10,7 @@ import React from 'react';
10
10
  import { BlockModel } from '../../base';
11
11
  export declare class JSBlockModel extends BlockModel {
12
12
  private _mountedOnce;
13
+ get showBlockCard(): boolean;
13
14
  renderComponent(): React.ReactNode;
14
15
  render(): React.JSX.Element;
15
16
  protected onMount(): void;